package com.yuw.bean;

import java.util.List;

public class Student {
    // 属性
    private String stuName;
    private int stuAge;
    private Teacher teacher;
    private List<Object> lsts;

    public Student(String stuName, int stuAge) {
        this.stuName = stuName;
        this.stuAge = stuAge;
    }

    public Student() {
    }

    // 行为
    public  void doStuding(){
        System.out.println(this.stuName +" is studing...");
    }

    public String getStuName() {
        return stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public List<Object> getLsts() {
        return lsts;
    }

    public void setLsts(List<Object> lsts) {
        this.lsts = lsts;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", teacher=" + teacher +
                ", lsts=" + lsts +
                '}';
    }
}
